import request from "@/utils/request";

// 查询消息未读
export function getMessageNumber() {
  return request({
    url: "/system/histMessage/getMessageNumber",
    method: "get",
  });
}

// 查询消息列表
export function gethistMessagelist(query, data) {
  return request({
    url: "/system/histMessage/list",
    method: "post",
    params: query,
    data,
  });
}

// 全部已读
export function updateAllRead() {
  return request({
    url: "/system/histMessage/updateAllRead",
    method: "get",
  });
}

// 全部已读
export function edithistMessage(data) {
  return request({
    url: "/system/histMessage/edit",
    method: "post",
    data,
  });
}
